package net.oschina.android.ui.fragment;

import net.oschina.android.R;
import android.annotation.SuppressLint;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;

/**
 * @author HuangWenwei
 *
 * @date 2014年8月26日
 */
@SuppressLint("NewApi")
public class SplashScreenFragment extends Fragment {
	private ProgressBar mProgressBar;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		final View view = inflater.inflate(R.layout.splash_screen_layout, container,false);
		mProgressBar = (ProgressBar) view.findViewById(R.id.pbsplashscreen);
		return view;
	}
	
	/**
	 * 设置ProgressBar的进度
	 *2014年8月27日
	 *@param progress
	 */
	public void setProgress(int progress){
		mProgressBar.setProgress(progress);
	}
}
